Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node: Mempool handling for moonlight txs #2237

Merged
merged 7 commits into from
Sep 4, 2024
Merged

Conversation

herr-seppia
Copy link
Member

@herr-seppia herr-seppia commented Aug 31, 2024

  • Reuse the current mempool features for moonlight txs too
    • Check nonce repetition
    • Transaction replacement (according to gas price)
  • Don't discard transactions that are not ready yet (nonce is not the next one)

@herr-seppia herr-seppia force-pushed the moonlight-mempool branch 2 times, most recently from 38d4022 to 0d0deb5 Compare September 3, 2024 09:13
@herr-seppia herr-seppia changed the title node: Mempool strategies for moonlight txs node: Mempool handling for moonlight txs Sep 3, 2024
@herr-seppia herr-seppia marked this pull request as ready for review September 3, 2024 09:14
- Change `spend_and_execute_moonlight` to `spend_moonlight`
- Change `spend_and_execute_phoenix` to `spend_phoenix`
- Change `spend_and_execute` to handle transitory and call execution
Copy link
Member

@moCello moCello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all the nullifiers are included in the SpendingId for phoenix-transactions. For the rest it looks good!

node-data/src/ledger/transaction.rs Show resolved Hide resolved
node/src/mempool.rs Outdated Show resolved Hide resolved
Copy link
Member

@moCello moCello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@herr-seppia herr-seppia merged commit 9479c10 into master Sep 4, 2024
15 checks passed
@herr-seppia herr-seppia deleted the moonlight-mempool branch September 4, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants